//
//  KLSelectedView.m
//  used
//
//  Created by xalo on 16/7/16.
//  Copyright © 2016年 王凯. All rights reserved.
//

#import "KLSelectedView.h"


@interface KLSelectedView ()

@property (weak, nonatomic) IBOutlet UITextField *bottomPrice;
@property (weak, nonatomic) IBOutlet UITextField *highPrice;

@end

@implementation KLSelectedView


- (void)awakeFromNib {

}


+ (instancetype)selectedView {
    
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:self options:nil].lastObject;
}

- (void)hide {
    [UIView animateWithDuration:0.1 animations:^{
        
        self.transform = CGAffineTransformIdentity;
    } completion:^(BOOL finished) {
        
        [self removeFromSuperview];
    }];
}



- (IBAction)clickPriceLabel:(UIButton *)sender {
    
    [_delegate selectedView:self didClickedPriceLabel:sender WithPriceNum:sender.tag];
    
}

- (IBAction)confirmAction:(id)sender {
    
    [_delegate selectedView:self didClickedButton:sender WithBottomTextField:self.bottomPrice highTextField:self.highPrice];
}


- (IBAction)resetAction:(id)sender {
    
    [_delegate selectedView:self didClickedButton:sender WithBottomTextField:self.bottomPrice highTextField:self.highPrice];
}







@end
